import request from '@/utils/request'

// 查询订单进度列表
export function listOrderProcess(query) {
  return request({
    url: '/vanger/orderProcess/list',
    method: 'get',
    params: query
  })
}

// 查询订单进度列表（联合）
export function listUnion(query) {
  return request({
    url: '/vanger/orderProcess/listUnion',
    method: 'get',
    params: query
  })
}


// 查询订单进度详细（联合）
export function getInfoUnion(id) {
  return request({
    url: '/vanger/orderProcess/getInfoUnion/' + id,
    method: 'get'
  })
}

// 查询订单进度详细
export function getOrderProcess(id) {
  return request({
    url: '/vanger/orderProcess/' + id,
    method: 'get'
  })
}

// 新增订单进度
export function addOrderProcess(data) {
  return request({
    url: '/vanger/orderProcess',
    method: 'post',
    data: data
  })
}

// 修改订单进度
export function updateOrderProcess(data) {
  return request({
    url: '/vanger/orderProcess',
    method: 'put',
    data: data
  })
}

// 删除订单进度
export function delOrderProcess(id) {
  return request({
    url: '/vanger/orderProcess/' + id,
    method: 'delete'
  })
}
